package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Phone {
    String type;
    int price;
    String color;

    //Battery b;//电池。。。
    Battery b=new Battery();//

    public void showPhone(){
        System.out.println("这部手机是"+type+",价格"+price+"元，颜色是"+color);
        System.out.println("电池信息如下：");
        //System.out.println("容量是"+b.vol+"毫安");

        System.out.println(b);
        b.showB();
    }
}
